.class Lorg/microemu/android/device/ui/AndroidAlertUI$1;
.super Ljava/lang/Object;
.source "AndroidAlertUI.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lorg/microemu/android/device/ui/AndroidAlertUI;-><init>(Lorg/microemu/android/MicroEmulatorActivity;Ljavax/microedition/lcdui/Alert;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

.field final synthetic val$activity:Lorg/microemu/android/MicroEmulatorActivity;


# direct methods
.method constructor <init>(Lorg/microemu/android/device/ui/AndroidAlertUI;Lorg/microemu/android/MicroEmulatorActivity;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 19
    iput-object p1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iput-object p2, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->val$activity:Lorg/microemu/android/MicroEmulatorActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    const/16 v6, 0x10

    const/4 v5, -0x2

    const/4 v4, -0x1

    .line 21
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    new-instance v2, Landroid/widget/LinearLayout;

    iget-object v3, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->val$activity:Lorg/microemu/android/MicroEmulatorActivity;

    invoke-direct {v2, v3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v2, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->view:Landroid/view/View;

    .line 22
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->view:Landroid/view/View;

    check-cast v1, Landroid/widget/LinearLayout;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 23
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->view:Landroid/view/View;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 25
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    new-instance v2, Landroid/widget/TextView;

    iget-object v3, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->val$activity:Lorg/microemu/android/MicroEmulatorActivity;

    invoke-direct {v2, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->titleView:Landroid/widget/TextView;

    .line 26
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->titleView:Landroid/widget/TextView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 27
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->titleView:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

    move-result-object v1

    sget-object v2, Landroid/R$styleable;->Theme:[I

    invoke-virtual {v1, v2}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 28
    .local v0, a:Landroid/content/res/TypedArray;
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->titleView:Landroid/widget/TextView;

    iget-object v2, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v2, v2, Lorg/microemu/android/device/ui/AndroidAlertUI;->titleView:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v0, v6, v4}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v3

    invoke-virtual {v1, v2, v3}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

    .line 29
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->view:Landroid/view/View;

    check-cast v1, Landroid/widget/LinearLayout;

    iget-object v2, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v2, v2, Lorg/microemu/android/device/ui/AndroidAlertUI;->titleView:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 31
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    new-instance v2, Landroid/widget/TextView;

    iget-object v3, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->val$activity:Lorg/microemu/android/MicroEmulatorActivity;

    invoke-direct {v2, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->alertTextView:Landroid/widget/TextView;

    .line 32
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->alertTextView:Landroid/widget/TextView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 33
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->alertTextView:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

    move-result-object v1

    sget-object v2, Landroid/R$styleable;->Theme:[I

    invoke-virtual {v1, v2}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 34
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->alertTextView:Landroid/widget/TextView;

    iget-object v2, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v2, v2, Lorg/microemu/android/device/ui/AndroidAlertUI;->alertTextView:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v0, v6, v4}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v3

    invoke-virtual {v1, v2, v3}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

    .line 35
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, v1, Lorg/microemu/android/device/ui/AndroidAlertUI;->view:Landroid/view/View;

    check-cast v1, Landroid/widget/LinearLayout;

    iget-object v2, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v2, v2, Lorg/microemu/android/device/ui/AndroidAlertUI;->alertTextView:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 37
    iget-object v1, p0, Lorg/microemu/android/device/ui/AndroidAlertUI$1;->this$0:Lorg/microemu/android/device/ui/AndroidAlertUI;

    invoke-virtual {v1}, Lorg/microemu/android/device/ui/AndroidAlertUI;->invalidate()V

    .line 38
    return-void
.end method
